<core:SET width='200'>
<core:SET inbox="inbox">

<core:SET title="New Leagues management">
<core:WRAP file="/adm/adm.layout.html" placeholder="Content">

<core:include file="/adm/inc/inc.adm.tabs.html">

<h1 align="center"> View the league submission {$name} </h1>

<form id="LeagueViewForm" name="LeagueViewForm" method="post" action="" runat="server">
<input name="league_id" type="hidden" id="league_id" runat="server">
<input name="page" type="hidden" id="page" runat="server">
<hr>
<core:optional for="msg">
	<span class="message" runat="server"> {$msg} </span>
</core:optional>

<table width="100%" border="0" align="center" cellspacing="2" cellpadding="3">
    <tr align="left">
    	<td class="whiteheader_center">
    		<core:optional for="league_id">
    			View the league (ID: {$league_id})
            </core:optional>
            <core:default for="league_id">
            	Create a new league
            </core:default>
         </td>
         <td class="whiteheader">
            <a href="/{$#app_name}/pub.myprofile.php"> My Profile </a> &nbsp;
           	<html:link url="/">All new leagues </html:link>  &nbsp;
           	<html:link url="/edit" param="league_id">Edit the league</html:link>
          </td>
     </tr>

    <core:default for="supress_errors">
    <ERRORSUMMARY id='Summary' runat="server">
        <tr valign="top">
          <td width="{width}">Errors: &nbsp;</td>
          <td class="left">
          	<FONT COLOR="RED">
          		<list:ITEM> {$ErrorMessage} &nbsp; </list:ITEM>
          	</FONT>
          </td>
        </tr>
     </ERRORSUMMARY>
     </core:default>

     <tr>
     	<td class="small" colspan="2">

     	</td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="league_id" runat="server">ID:</label>
       </td>
       <td class="form_field">
        	{$league_id}
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="category" runat="server">Category:</label>
       </td>
       <td class="form_field">
        	{$category_show}
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="status" runat="server">Status:</label>
       </td>
       <td class="form_field">
        	{$status_show}
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="name" runat="server">Event name:</label>
       </td>
       <td class="form_field">
        	{$name}
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="type" runat="server">Event type:</label>
       </td>
       <td class="form_field">
        	{$event_show}
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="colors" runat="server">Age group:</label>
       </td>
       <td class="form_field">
        	{$age_show}
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="url" runat="server">URL:</label>
       </td>
       <td class="form_field">
        	{$public_url}
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="date" runat="server">Date Posted:</label>
       </td>
       <td class="form_field">
        	{$date_added}
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="author" runat="server">Author:</label>
       </td>
       <td class="form_field">
         <span class="small"> {$author_show} </span>
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="org" runat="server">Organization:</label>
       </td>
       <td class="form_field">
         <core:optional for="org_title">
         {$org_title},
         </core:optional>
         <core:optional for="org_phone">
          {$org_phone},
         </core:optional>
         <core:optional for="org_address">
           {$org_address},
         </core:optional>
         <core:optional for="org_city">
           {$org_city},
         </core:optional>
         <core:optional for="org_state">
            {$org_state},
         </core:optional>
         <core:optional for="org_zip">
         	{$org_zip},
         </core:optional>
         <core:optional for="org_email">
          {$org_email}
         </core:optional>
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="coach" runat="server">Additional information:</label>
       </td>
       <td class="form_field">
         {$additional}
       </td>
     </tr>

     <tr valign="top">
       <td class="form_label" width="{$width}">
      	 <label for="premium" runat="server">Premium content:</label>
       </td>
       <td class="form_field">
         {$premium_show}
       </td>
     </tr>

     <tr>
      <td class="whiteheader_center" colspan="2">&nbsp;</td>
     </tr>

	 <tr>
      <td>&nbsp;</td>
      <td class="form_field">
      		<core:default for="denied_show">
                <input type="submit" name="deny" value="Deny" runat="server">
            </core:default>
            <core:default for="published_show">
            	<input type="submit" name="publish" value="Accept/Publish" runat="server">
            </core:default>

            <input type="submit" name="leagues" value="Back to new leagues" runat="server">
            <core:optional for="next_available">
            	<input type="submit" name="viewnext" value="View next league" runat="server">
            </core:optional>
            <html:link url="/edit" param="league_id">Edit the league</html:link>
            <html:link url="/delete" param="league_id">Delete the league</html:link>
      </td>
</tr>

</table>

<html:link url="/create" param="league_id">Create a new league</html:link>
</form>